// ==UserScript== // @name VIP视频解析|网易云音乐|QQ音乐免费下载|网页文字复制粘贴 // @namespace sunluckyigoodmo // @version 1.1.1 // @description 免费观看VIP视频,弄了多条线路解析爱奇艺,优酷和B站,腾讯等VIP视频;又新增了网易云音乐和QQ音乐免费下载功能;新增了网页复制粘贴和文档下载等功能,入口在 百度文库 和 道客巴巴。 // @author sunluckyigoodmo // @match https://y.qq.com/* // @match https://music.163.com/* // @match https://*.bilibili.com/* // @match https://v.qq.com/* // @match https://v.yinyuetai.com/playlist/* // @match https://v.youku.com/* // @match https://vip.pptv.com/show/* // @match https://film.sohu.com/* // @match https://*.tudou.com/* // @match https://vip.1905.com/play/* // @match https://*.acfun.cn/v/* // @match https://*.fun.tv/vplay/* // @match https://*.mgtv.com/* // @match https://*.iqiyi.com/v_* // @match https://v.yinyuetai.com/video/* // @match https://www.le.com/* // @match https://www.kuwo.com/* // @match https://www.zhihu.com/* // @match https://wenku.baidu.com/view/* // @match https://www.doc88.com/* // @match https://wenku.baidu.com/link* // @match https://www.51test.net/show/* // @match https://max.book118.com/* // @license GPL License // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; GM_addStyle('.optDiv {top:500px;'+ 'z-index:99999;'+ 'width:36px;'+ 'height:128px;'+ 'border-radius:15px;'+ 'overflow:hidden;'+ 'position:absolute;'+ 'left:1750px;'+ 'text-align:center;'+ 'background-color:red;}'+ '.optDiv #firstWay{width:26px;'+ 'height:125px;'+ 'color:#000;'+ 'text-decoration:none;'+ 'font:bold 24px/30px arial, sans-serif; '+ 'text-align:center;}'+ '#myNewDiv2 {width:115px;height:34px; overflow:hidden;position:absolute; left:0; top:500px;z-index:99999;background-color:#FF34B3;border-radius:10px 10px 10px 10px;}'+ '#myNewDiv2 #downloadMusic2{width:80px;height:32px;color:#000; text-decoration:none; font:bold 24px/30px arial, sans-serif; text-align:center;margin-left:10px; }'+ '#downloadDocDiv {width:222px;height:34px; overflow:hidden;position:absolute; left:0; top:500px;z-index:99999;background-color:orangered;border-radius:10px 10px 10px 10px;}'+ '#downloadDocDiv #downloadDoc{width:70px;height:32px;color:#000; text-decoration:none; font:bold 24px/30px arial, sans-serif; text-align:center;margin-left:10px; }' ); // ========================================================================================= // ======================================= 2025-02-18 V2版 ================================= // ========================================================================================= // myNewDiv downloadMusicDiv downloadMusic //console.log("=========comeon!!==========: "); var videoUrl= window.location.href; var version = "20250218002aabb"; var myflag = false; var myVideoUrlList = [ { url: "https://www.ckplayer.vip/jiexi/?url=", id: "ckplayer" }, { url: "https://yparse.ik9.cc/index.php?url=", id: "yparse" }, { url: "https://www.pouyun.com/?url=", id: "pouyun" }, { url: "https://jx.xmflv.com/?url=", id: "xmflv" }, { url: "https://tv.woaimoon.net/label/v.html?url=", id: "woaimoon" }, { url: "https://www.8090g.cn/?url=", id: "8090g" } , { url: "https://www.yemu.xyz/?url=", id: "yemu" }, { url:"https://www.xiaolizio.xyz/myvideo.html?version="+version+"&url=", id: "firstWay" }, { url: "https://jx.m3u8.tv/jiexi/?url=", id: "m3u8" } , { url: "https://jx.nnxv.cn/tv.php?url=", id: "nnxv" }]; // id="?" href="https://www.xiaolizio.xyz/myvideo.html?url=' //myVideoUrlList.forEach((function(e) { //console.log(e.url ,e.title); //})) // document.addEventListener('click', function(event) { // console.log("=========页面被点击了!==========: "); // videoUrl= window.location.href; // console.log("=========videoUrl==========: ",videoUrl); // myVideoUrlList.forEach((function(e) { // // 获取元素 // var link = document.getElementById(e.id); // var newHref = e.url + videoUrl; // // 设置新的href值 // link.setAttribute('href', newHref); // })) // }); // ========================================================================================= // ====================== OCR全网文字复制粘贴|百度文库,道客巴巴等 ============================== // ========================================================================================= if(location.href.indexOf('wenku') != -1 || location.href.indexOf('book118') != -1 || location.href.indexOf('doc88') != -1 ){ myflag = false; // myNewDiv downloadMusicDiv downloadMusic var bbmusicdiv=document.createElement("div"); bbmusicdiv.innerHTML= '
'+ 'OCR全网文字提取复制'+ '
'; document.body.appendChild(bbmusicdiv); } var VideoUrlList = [ { title: "\u591c\u5e55", url: "https://www.yemu.xyz/?url=" }, { title: "ckplayer", url: " https://www.ckplayer.vip/jiexi/?url=" }, { title: "qqwtt", url: "https://jx.qqwtt.com/?url=" }, { title: "\u5256\u5143", url: "https://www.pouyun.com/?url=" }, { url: "https://www.8090.la/8090/?url=", title: "\u5168\u80fdvip\u63a5\u53e3\u2461" }, { title: "\u76d8\u53e4", url: "https://www.pangujiexi.com/jiexi/?url=" }, { title: "eptept", url: "https://dmjx.m3u8.tv/?url=" }, { url: "https://www.ckplayer.vip/jiexi/?url=", title: "\u63a5\u53e3:Ckplayer" }, { url: "https://yparse.ik9.cc/index.php?url=", title: "\u63a5\u53e3:\u4e91\u6790" }, { url: "https://www.8090g.cn/?url=", title: "\u63a5\u53e3:8090" }, { title: "BL", url: "https://vip.bljiex.com/?v=" }, { url: "https://www.mtosz.com/m3u8.php?url=", title: "Mao\u89e3\u6790" }, { title: "play", url: "https://www.playm3u8.cn/jiexi.php?url=" }, { title: "TV\u89e3\u6790[\u817e\u8baf (\u8292\u679c)]", url: "https://jx.m3u8.tv/jiexi/?url=" }, { title: "\u51b0\u8c46", url: "https://api.qianqi.net/vip/?url=" }, { title: "m1907", url: "https://im1907.top/?jx=" }, { title: "Player-JY", url: "https://jx.playerjy.com/?url=" }, { title: "\u867e\u7c731", url: "https://jx.xmflv.com/?url=" }, { title: "\u867e\u7c732", url: "https://jx.xmflv.cc/?url=" },{ title: "CK", url: "https://jx.m3u8.tv/jiexi/?url=" }, { title: "JY", url: "https://jx.playerjy.com/?url=" }, { title: "JY\u89e3\u6790", url: "https://jx.we-vip.com/?url=" }, { title: "\u2478\u53f7\u89e3\u6790\u63a5\u53e3", url: "https://www.8090g.cn/jiexi/?url=" }, { title: "\u7efc\u5408/B\u7ad9", url: "https://jx.jsonplayer.com/player/?url=" }, { title: "8090", url: "https://www.8090g.cn/?url=" }, { title: "qianqi", url: "https://api.qianqi.net/vip/?url=" }, { title: "\u6837\u56fe\u5185\u7f6e", url: "https://jx.yangtu.top/?url=" } ]; //VideoUrlList.forEach((function(e) { // h += '"; // if (location.hostname.indexOf("iqiyi") > 0 || // location.hostname.indexOf("qq") > 0 || // location.hostname.indexOf("bilibili") > 0 || // location.hostname.indexOf("1905") > 0 || // location.hostname.indexOf("pptv") > 0 || // location.hostname.indexOf("tudou") > 0 || // location.hostname.indexOf("mgtv") > 0 || // location.hostname.indexOf("fun.tv") > 0 || // location.hostname.indexOf("acfun") > 0 || // location.hostname.indexOf("youku") > 0 || // location.hostname.indexOf("sohu") > 0 ) { // // myflag = true; // } // ========================================================================================= // ======================================= CSDN 免登录复制 ================================= // ========================================================================================= if(location.hostname.indexOf("csdn.net") > 0){ myflag = false; // Your code here... //console.log("====================HELLO CSDN!!!======================="); // 代码可以拖动复制 var style = 'code { user-select: text !important}'; //查看文章全文 style +=".article_content{height:auto !important;max-height:unset !important;}"; //代码自动展开 style +=".set-code-hide{height: auto !important;max-height: unset !important;overflow-y: hidden !important;}"; //右下角登录隐藏 style +=".passport-login-tip-container {display:none !important;}"; // 在整个文档前插入修改后的XML样式表. document.insertBefore( document.createProcessingInstruction('xml-stylesheet','type="text/css" href="data:text/css;utf-8,' + encodeURIComponent(style) + '"'), document.documentElement ); window.onload=()=>{ $("#content_views").unbind("copy") //遍历每个代码块 document.querySelectorAll(".hljs-button.signin").forEach((elem) => { // 设置标题 elem.setAttribute("data-title", "一键复制"); // 设置颜色 elem.setAttribute("style", "background-color:red;"); //elem.setBackGroudColor("red"); elem.onclick = function (elem) { elem.stopPropagation(); navigator.clipboard .writeText(this.parentNode.innerText) .then(() => {this.setAttribute("data-title", "复制成功") }) }; }); } } // ========================================================================================= // ============================= 网易云音乐|QQ音乐免费下载 ================================= // ========================================================================================= if(location.href.indexOf('music.163') != -1 || location.href.indexOf('y.qq') != -1 ){ myflag = false; // myNewDiv downloadMusicDiv downloadMusic var mymusicdiv=document.createElement("div"); mymusicdiv.innerHTML='
'+ '
'+ '下载音乐'+ '
'; document.body.appendChild(mymusicdiv); } if(videoUrl.indexOf("vip.1905.com") > 0 || videoUrl.indexOf("v.youku.com") > 0 || videoUrl.indexOf("v.qq.com") > 0 || videoUrl.indexOf("mgtv.com") > 0 || videoUrl.indexOf("sohu.com") > 0 || videoUrl.indexOf("bilibili.com") > 0 || videoUrl.indexOf("v.yinyuetai.com") > 0 || videoUrl.indexOf("vip.pptv.com") > 0 || videoUrl.indexOf("tudou.com") > 0 || videoUrl.indexOf("acfun.cn") > 0 || videoUrl.indexOf("fun.tv") > 0 || videoUrl.indexOf("iqiyi.com") > 0 ){ myflag = true; } if(myflag){ var containerdiv=document.createElement("div"); containerdiv.innerHTML= '
'+ '一键解析'+ '
'; document.body.appendChild(containerdiv); // 添加点击事件 //document.getElementById("firstWay").onclick = function() { //console.log("===方式1 按钮被点击了!==="); //打开新窗口或标签,并附加查询字符串 // window.open('https://www.xiaolizio.xyz/myvideo.html?url=' + window.location.href, '_blank'); // }; // document.addEventListener('click', function() { // console.log("=========页面被点击了hahahahahhahahaha!==========: "); // videoUrl= window.location.href; // console.log("=========当前视频地址 videoUrl 为:==========: ",videoUrl); // var myvideo = document.getElementById("xiaolizio"); // var newHref = myvideo.url + videoUrl; // // 设置新的href值 // myvideo.setAttribute('href', newHref); // myVideoUrlList.forEach((function(e) { // // 获取元素 // var link = document.getElementById(e.id); // var newHref = e.url + videoUrl; // // 设置新的href值 // link.setAttribute('href', newHref); // })) // }); } // ========================================================================================= // ======================================= CSDN 免登录复制 ================================= // ========================================================================================= // if(location.hostname.indexOf("csdn.net") > 0){ // flag = false; // // Your code here... // //console.log("====================HELLO CSDN!!!======================="); // // 代码可以拖动复制 // var style = 'code { user-select: text !important}'; // //查看文章全文 // style +=".article_content{height:auto !important;max-height:unset !important;}"; // //代码自动展开 // style +=".set-code-hide{height: auto !important;max-height: unset !important;overflow-y: hidden !important;}"; // //右下角登录隐藏 // style +=".passport-login-tip-container {display:none !important;}"; // // 在整个文档前插入修改后的XML样式表. // document.insertBefore( // document.createProcessingInstruction('xml-stylesheet','type="text/css" href="data:text/css;utf-8,' + encodeURIComponent(style) + '"'), // document.documentElement // ); // window.onload=()=>{ // $("#content_views").unbind("copy") // //遍历每个代码块 // document.querySelectorAll(".hljs-button.signin").forEach((elem) => { // // 设置标题 // elem.setAttribute("data-title", "一键复制"); // // 设置颜色 // elem.setAttribute("style", "background-color:red;"); // //elem.setBackGroudColor("red"); // elem.onclick = function (elem) { // elem.stopPropagation(); // navigator.clipboard // .writeText(this.parentNode.innerText) // .then(() => {this.setAttribute("data-title", "复制成功") }) // }; // }); // } // } function playMyVideo(url, videoContainerId) { //console.log("=====playVideo---url:====", url); var id = videoContainerId + "V"; const div = document.getElementById("ckplayerV"); // 清空div内容 div.innerHTML = ''; // const myIframe = document.getElementById("iframe"); // myIframe.src = url; // 创建iframe元素并设置属性 const myIframe = document.createElement('iframe'); myIframe.src = url; myIframe.id = myVideoIframe; myIframe.allowfullscreen = "true"; myIframe.width = "100%"; myIframe.height = "100%"; // myIframe.webkitallowfullscreen = "true"; // myIframe.mozallowfullscreen = "true"; //myIframe.allowfullscreen = true; // myIframe.webkitallowfullscreen = true; // myIframe.mozallowfullscreen = true; // 将iframe添加到div中 div.appendChild(myIframe); } function getCoupon(document,newCoupondiv,dataa){ // var newButton = document.getElementById('button'); // if(newButton){ // // 设置按钮的文本内容 // newButton.textContent = 'HHHH'; // newButton.width="76px"; // newButton.height="46px"; // newButton.backgroundColor="red"; // }else{ // // alert(666); // } var mycouponaa=document.getElementById("mycouponaa"); if(mycouponaa){ let randomNum = Math.floor(Math.random() * 10); //alert(randomNum); //alert(randomNum%2 == 0); //# if(randomNum%2 == 0){ } } } // //点击导航栏滑动到对应板块 // $('.menu li').eq(0).addClass('cur'); // $('.menu li').on('click', function () { // $(this).addClass('cur').siblings().removeClass('cur'); // var index = $(this).attr('data-href'); // var elOffset = $(index).offset().top; // $('html,body').animate({ 'scrollTop': elOffset }, 800); // }) })();